package net.linku.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.linku.model.BaseDTO;

/**
 * 后台用户操作日志记录表
 */
@ApiModel(description = "后台用户操作日志记录表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "l_a_change_record")
public class LAChangeRecord extends BaseDTO<LAChangeRecord> {
    /**
     * 操作日志记录
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "操作日志记录")
    private Long id;

    /**
     * 租户ID, 值集 0 是大众租户 1是后端集团租户
     */
    @TableField(value = "tenant_id")
    @ApiModelProperty(value = "租户ID, 值集 0 是大众租户 1是后端集团租户")
    private Long tenantId;

    /**
     * 变更来源
     */
    @TableField(value = "change_resource")
    @ApiModelProperty(value = "变更来源")
    private String changeResource;

    /**
     * 单据的数据类型
     */
    @TableField(value = "business_type")
    @ApiModelProperty(value = "单据的数据类型")
    private String businessType;

    /**
     * 变更的id
     */
    @TableField(value = "business_id")
    @ApiModelProperty(value = "变更的id")
    private Long businessId;

    /**
     * 变更动作
     */
    @TableField(value = "`action`")
    @ApiModelProperty(value = "变更动作")
    private String action;

    /**
     * 变更类型(insert，modify，delete)
     */
    @TableField(value = "change_type")
    @ApiModelProperty(value = "变更类型(insert，modify，delete)")
    private String changeType;

    /**
     * 变更的描述(新增，修改，删除)
     */
    @TableField(value = "change_desc")
    @ApiModelProperty(value = "变更的描述(新增，修改，删除)")
    private String changeDesc;

    /**
     * 变更前数据
     */
    @TableField(value = "before_data")
    @ApiModelProperty(value = "变更前数据")
    private String beforeData;

    /**
     * 变更后数据
     */
    @TableField(value = "after_data")
    @ApiModelProperty(value = "变更后数据")
    private String afterData;
}